﻿//-----------------------------------------------------------------------
// <copyright file="GridID.cs" company="FIT VUT">
//     Copyright (c) FIT VUT. All rights are reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BookCaching.CustomControls
{
    public class GridID : Grid
    {
        public const string IDName = "ID";
        public static readonly DependencyProperty IDProperty = DependencyProperty.Register(IDName, typeof(int), typeof(GridID), new PropertyMetadata(int.MinValue));

        /// <summary>
        /// Gets or sets the ID of the grid.
        /// </summary>
        public int ID
        {
            get
            {
                return (int)GetValue(IDProperty);
            }

            set
            {
                this.SetValue(IDProperty, value);
            }
        }        
    }
}
